const helper = require("../../../app/extend/helper");
let i = 10;
while (i > 0) {
    console.log(helper.uuid());
    i--;
}
return;

const mysql = require("mysql");
const con = mysql.createConnection({
    host: "localhost",
    user: "root",
    password: "root",
    database: "sx-exam",
});

// con.query("select * from acl", (error, acls) => {
const acls = [
    "E2Pm-fR7M-mLFK-xaem",
    "3Fbd-iOO1-87iL-nnsL",
    "yQ31-kGv6-nZcw-3ozA",
    "ZQrZ-3jrX-U7cn-1Qe9",
    "3lXq-RMNA-n7YP-coN7",
    "F4mg-dpoJ-IUHm-nJ3S",
];

acls.forEach((acl) => {
    con.query(
        `insert into r_role_acl (rid, aid) values ('DgLx-lE67-GrAd-jmpO', '${acl}')`
    );
});

con.end();
// });
